<template>
  <div class="goods-list">
    <good-list-item v-for="item in showGoods" :goodsItem="item">
    </good-list-item>
  </div>
</template>
<script>
  import GoodListItem from './GoodListItem.vue';
export default {
  name: "GoodsList",
  components: {
    GoodListItem
  },
  props: {
    showGoods: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>
<style scoped>
  .goods-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 5px;
  }
</style>